//
//  BodyButtonGV.swift
//  demo01
//
//  Created by babybus on 2025/7/7.
//
import Foundation
import UIKit
import SnapKit

class BodyGVButton:UIButton{
    public var mainLabel:UILabel!
    public var secondLabel:UILabel!
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupUI(){
        mainLabel = UILabel()
        secondLabel = UILabel()
        
        mainLabel.text = "签到"
        mainLabel.textColor = .white
        mainLabel.font = UIFont.systemFont(ofSize: 18)
        
        secondLabel.text = "+10"
        secondLabel.textColor = UIColor(red: 255/255, green: 241/255, blue: 134/255, alpha: 1.0)
        secondLabel.font = UIFont.systemFont(ofSize: 14)
        
        self.addSubview(mainLabel)
        self.addSubview(secondLabel)
        mainLabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview().inset(18)
        }
        secondLabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(mainLabel.snp.bottom).offset(3)
        }
        
    }
    
}
